* gdk-pixbuf-io.c (_gdk_pixbuf_get_module): If pure sniffing
yields uncertain results, try again with the filename.
Patch by Tyler Lawson
svn path=/trunk/; revision=22433
+2009-03-01 Matthias Clasen <mclasen@redhat.com>
+
+ Bug 569671 – gdk_pixbuf_new_from_file() can't open
+ image/x-portable-pixmap
+
+ * gdk-pixbuf-io.c (_gdk_pixbuf_get_module): If pure sniffing
+ yields uncertain results, try again with the filename.
+ Patch by Tyler Lawson
+
2009-02-17 Matthias Clasen <mclasen@redhat.com>
* === Released 2.15.4 ===
gchar **mimes;
gchar *type;
gint j;
+ gboolean uncertain;
- mime_type = g_content_type_guess (NULL, buffer, size, NULL);
+ mime_type = g_content_type_guess (NULL, buffer, size, &uncertain);
+ if (uncertain)
+ mime_type = g_content_type_guess (filename, buffer, size, NULL);
for (modules = get_file_formats (); modules; modules = g_slist_next (modules)) {
GdkPixbufModule *module = (GdkPixbufModule *)modules->data;